<!DOCTYPE html>
<meta charset="utf-8">
<link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
:root {
  font: 30px/1 Ahem;
}
.grid {
  display: inline-grid;
  border: 4px solid gray;
  vertical-align: top;
}
</style>
<div class="grid" style="inline-size: 1em">
  <div>
    X<br>X
  </div>
</div>
<div class="grid" style="inline-size: 2em">
  <div>
    X<br>X
  </div>
</div>
<div class="grid" style="inline-size: 3em">
  <div>
    X<br>X
  </div>
</div>
<br><br>
<div class="grid" style="writing-mode: vertical-rl; inline-size: 1em">
  <div>
    X<br>X
  </div>
</div>
<div class="grid" style="writing-mode: vertical-rl; inline-size: 2em">
  <div>
    X<br>X
  </div>
</div>
<div class="grid" style="writing-mode: vertical-rl; inline-size: 3em">
  <div>
    X<br>X
  </div>
</div>
